

#include "stdafx.h"

#include <iostream>
using std::cout;
using std::cerr;
using std::endl;


#include "../../loader.h"

using namespace dlguif;

Loader loader;


void __cdecl OnAssignText(void* userptr, const char* data)
{
	std::string* str = (std::string*)userptr;
	str->assign(data);
}


int _tmain(int argc, _TCHAR* argv[])
{
	std::string text = "000\n1111111\n22222\n33333\n4444444";

	if(loader.DialogInputText("caption", text.c_str(), OnAssignText, &text ) )
	{
		cout << text << endl;
	}
	else
	{
		cout << "cancel select text \n";

	}
 
 
	system("pause");
	return 0;
}

